<%= kindeditor_javacript_include_tag %>
<div class="pa clearfix">
  <div class="span-p70 colborder">
    <h3><%= @action_title %></h3>
    <div>
      <%= form_for @article, :url => @action do |article| %>
        <p>
          <%= article.label :title,'标题', :class => 'block' %>
          <%= article.text_field :title, :class => 'full' %>
        </p>
        <p>
          <%= article.label :category_id,'分类', :class => 'block' %>
          <%= article.select :category_id, @categories.collect {|p| [ p.name, p.id ] } %>
          <%= link_to '新建一个分类?', '/categories/new' %>
        </p>
        <div class="ma-bottom">
          <%= article.label :content,'内容', :class => 'block' %>
          <%= article.text_area :content, :id => 'kindeditor', :class => 'full' %>
        </div>
        <p>
          <%= article.submit %>
        </p>
      <% end %>
    </div>
  </div>
  <div class="span-5 last">
    <%= render 'layouts/admin/articles_sidebar' %>
  </div>
</div>